cmdpad: fix compilation with GCC 15
authorRosen Penev <[email protected]>
Sat, 12 Jul 2025 03:21:11 +0000 (20:21 -0700)
committerTed Hess <[email protected]>
Wed, 17 Sep 2025 16:58:18 +0000 (12:58 -0400)
There's no parameter to this function.

Signed-off-by: Rosen Penev <[email protected]>
utils/cmdpad/Makefile
utils/cmdpad/patches/010-gcc15.patch [new file with mode: 0644]

index 5be2f01bb58b7224cc5883ada15ed154026875d4..8ab25530dad8696c15915eff81841845209e242a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cmdpad
 PKG_VERSION:=0.0.3
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/cmdpad
diff --git a/utils/cmdpad/patches/010-gcc15.patch b/utils/cmdpad/patches/010-gcc15.patch
new file mode 100644 (file)
index 0000000..ce83d7e
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/command.c
++++ b/src/command.c
+@@ -160,7 +160,7 @@ int addCommand( char * command, unsigned
+       struct CMD * tmp ;
+       int count ;
+       
+-        count = getNumberofEntry( cmd) ;
++        count = getNumberofEntry() ;
+       if( count >= 0) { 
+               cmd = (struct CMD *) realloc( cmd, 
+                                             (count+2)*sizeof( struct CMD)) ;